package com.lcredu.web.exception;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

/**
 * @author 黎长容
 * @date 2025-07-26 15:05
 */
@ResponseStatus(reason = "年龄必须在1-120之间", value = HttpStatus.BAD_REQUEST)
public class AgeException extends RuntimeException {
    public AgeException() {
    }

    /**
     * 自定义异常处理器
     */

    
    public AgeException(String message) {
        super(message);
    }
}
